#include "log.h"

void log(int fd, const char *fmt, ...){
    char buffer[LOG_BUFFER_MAX];
    va_list arg;
    va_start(arg, fmt);
    vsprintf(buffer, fmt, arg);
    va_end(arg);
    write(fd, buffer, strlen(buffer));
}
